<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="keywords" content="关键字,keywords" />
		<meta name="description" content="描述">
		<title>{:config('defaultinfo')->webtitle}</title>
		<link rel="stylesheet" href="__CSS__/bootstrap.css" />
		<link rel="stylesheet" href="__CSS__/style.css" />
		<link rel="stylesheet" href="__CSS__/layui.css" />
		<link rel="stylesheet" href="__CSS__/zrstyle.css" />
		
		<script type="text/javascript" src="__JS__/jquery-2.1.0.js" ></script>
		<script type="text/javascript" src="__JS__/bootstrap.min.js" ></script>
		<script type="text/javascript" src="__JS__/layer/layer.js" ></script>
		<style>
			html{
				background: #FFFFFF;
			}
			.layer-anim{
				width:160px
			}
		</style>
	</head>
	<body>
		<div class="logo">
			<img class="mr20" src="__IMG__/logo1.png"/>
			<h1>润泉CRM系统管理</h1>
		</div>
		<div class="signinwrap">
			<div class="signin">
				<h3>行政中心登录</h3>
				<div class="user">
					<span class="fl usericon"></span>
					<input class="fl" type="text" name="account" placeholder="请输入账号"/>					
				</div>
				<div class="psw">
					<span class="fl pswicon"></span>
					<input class="fl" type="password" name="password" placeholder="请输入密码"/>					
				</div>				
				<button class="signinbtn" onclick="submitLogin()">登录</button>
				<!-- <div class="signinbot">
					<input class="fl" type="checkbox" />
					<p class="fl">三天内自动登录</p>
					<a class="fr" href="#">忘记密码</a>
				</div> -->
			</div>
		</div>
		<div class="footer">
			<p>COPY RICH:润泉净水器有限公司 版权所有 渝ICP备16031474号</p>
		</div>
	</body>
</html>


<script>

function submitLogin(){
	var account = $('input[name="account"]').val();
	var password = $('input[name="password"]').val();
	if($.trim(account) == ''){
		layer.msg('请填写登录帐号', {icon: 5,time: 2000});
		return false;
	}
	
	if($.trim(password) == ''){
		layer.msg('请填写登录密码', {icon: 5,time: 2000});
		return false;
	}

	
	$.post("{:url('Login/doLogin')}",{account:account,password:password},function(e){
		console.info(e);
	},'json');
}




function ade(){
	layer.msg('禁用', {
		icon: 6,
		time: 2000
	},function(){
		window.location.href="http://www.baidu.com"
	});
	
	
	/* layer.alert('墨绿风格，点击确认看深蓝', {
		skin: 'layui-layer-lan'
		    ,closeBtn: 0
		    ,anim: 1 //动画类型
		    ,icon: 6
		    ,time: 2000, //20s后自动关闭
		},function(){
			alert(11111)
		}) */
}


</script>













